package com.md.controller;

import com.md.api.login.LoginApi;
import com.md.application.LoginApplicationService;
import com.md.model.request.login.AzureSamlLoginRequest;
import com.md.model.response.AzureSamlLoginResponse;
import com.md.model.system.CommonResult;
import com.md.value.enums.OperationEnum;
import com.md.value.enums.ModuleEnum;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 刘骄阳
 * 2024-03-24 1:10
 */
@RestController
@RequiredArgsConstructor
public class LoginController implements LoginApi {
  private final LoginApplicationService loginApplicationService;

  @Override
  public CommonResult<AzureSamlLoginResponse> azureSaml(final AzureSamlLoginRequest request) {
    return loginApplicationService.azureSaml(request);
  }
}
